package com.ruoyi.system.kysh.service;

import com.ruoyi.system.kysh.entity.TeamClassInf;
import com.ruoyi.system.kysh.entity.dto.TeamClassInfsDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TeamClassInfService {


    List<TeamClassInf> selectByDeptAndNameAndPostAndPage(String deptName,String parentName,
                                                         String nickName, String postName, int page, int pageSize);

    TeamClassInfsDto showNewClassInf(Long deptId,int page, int pageSize);

    String isSame(TeamClassInf[] teamClassInfs);

    void makeEmpolyInDept(TeamClassInf[] teamClassInfs, String deptName,String parentDeptName);

    void deleteByUserIdAndParentId(Long userId,Long parentId);

    String findMorByDept(String deptName, String parentName);

    boolean morIsExist(TeamClassInf teamClassInf);

    void updateClassInf(TeamClassInf teamClassInf);

    String findAccByDept(String deptName, String parentName);

    List<TeamClassInf> getUserInfNotSelect(String deptName,String parentName);

    void saveUsersByDeptId(Long taskId, String deptName, String parentName, List<Long> userId);

    List<TeamClassInf> getUserInfByTaskId(Long taskId);

    TeamClassInfsDto selectByDeptIdAndNameAndPostAndPage(Long deptId, String nickName, String postName, int page, int pageSize);

    void makeEmpolyInDeptId(List<TeamClassInf> teamClassInfs, Long deptId);
}
